<?php
/**
 * logout controller
 *
 * $Id: logout.php 117 2011-09-07 14:58:19Z leikou@163.com $
 */

class Logout extends OA_Controller
{
	
	function index() {
		
		if($this->session->get_uid() !== FALSE)
		{
			$this->session->sess_destroy();
		}
		
		$this->load->helper('url');
		redirect('/login');
		
	}
	
}

/* End file of logout.php */
/* Location: location/logout.php */
